package edu.yuhf.wx.controller;

import edu.yuhf.domain.Type;
import edu.yuhf.service.iface.TypeService;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Controller
@RequestMapping("wx/api/v1/type")
public class WxTypeController {

    @Resource
    TypeService typeService;
    @RequestMapping("/list")
    public @ResponseBody List<Type> showType(){
        List<Type> list = typeService.getTypesAll();
        return list;
    }
}
